'use strict';
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
const r = require('../../nodes/Scalar.cjs');
function a({ value: t, source: e }, o) {
  return e && (t ? l : n).test.test(e)
    ? e
    : t
      ? o.options.trueStr
      : o.options.falseStr;
}
const l = {
    identify: t => t === !0,
    default: !0,
    tag: 'tag:yaml.org,2002:bool',
    test: /^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,
    resolve: () => new r.Scalar(!0),
    stringify: a,
  },
  n = {
    identify: t => t === !1,
    default: !0,
    tag: 'tag:yaml.org,2002:bool',
    test: /^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,
    resolve: () => new r.Scalar(!1),
    stringify: a,
  };
exports.falseTag = n;
exports.trueTag = l;
